package com.zdp.dubbo.simulate.framework.register;

import java.util.HashMap;
import java.util.Map;

/**
 * 本地注册
 * @author ZhengDp
 * @Date 2023/6/4 12:07
 */
public class LocalRegister {
    // key : interface , value : interfaceImpl
    private static Map<String,Class> map = new HashMap<>();

    public static void register(String interfaceName, String version ,Class implClass) {
        String key = interfaceName + "-" + version;
        map.put(key,implClass);
    }

    public static Class get(String interfaceName) {
        return map.get(interfaceName);
    }

}
